<template>
    <view style="height: 100vh" :style="themeColor">
        <mapLocationPickerPolygons
            :from="from"
            :pagefrom="pagefrom"
            :base_url="base_url"
            :sig="sig"
            :qqmapsdkKey="qqmapsdkKey"
            :polygons="polygons"></mapLocationPickerPolygons>
    </view>
</template>

<script>
import mapLocationPickerPolygons from "@/pages_group/components/liupishui-pickerpolygons/liupishui-pickerpolygons.vue"

export default {
    components: {
        mapLocationPickerPolygons,
    },
    data() {
        return {
            polygons: [
                {
                    points: [
                        {
                            latitude: "36.850142",
                            longitude: "117.982894",
                        },
                        {
                            latitude: "36.844984",
                            longitude: "118.0732",
                        },
                        {
                            latitude: "36.840355",
                            longitude: "118.099896",
                        },
                        {
                            latitude: "36.797837",
                            longitude: "118.058995",
                        },
                        {
                            latitude: "36.786369",
                            longitude: "117.990083",
                        },
                    ],
                    strokeWidth: 1,
                    strokeColor: "#ff000066",
                    fillColor: "#ff000016",
                },
            ],
            from: "",
            pagefrom: "",
            qqmapsdkKey: "HT6BZ-W2R3T-JYCX5-LVHIU-BR5RK-IXFR2", //必须，申请地址：https://lbs.qq.com/miniProgram/jsSdk/jsSdkGuide/jsSdkOverview，小程序还需要在控制台（https://lbs.qq.com/dev/console/application/mine）添加小程序的appid
            // base_url:'https://******.com/ws/',//小程序不需要配置此项;H5配置此项是为了跨域，地址为自己配置的代理服务器地址加路径'/ws/'(实际请求可能会出现双斜杠，如果报错，记得删除一个);
            // sig:'************'//小程序不需要配置此项,H5调用webservice使用（域名白名单或者授权ip的情况可以不填此项），文档说明详见https://lbs.qq.com/miniProgram/jsSdk/jsSdkGuide/methodSearch
        }
    },
    onLoad(e) {
        if (e.from) {
            this.from = e.from
        }
        if (e.pagefrom) {
            this.pagefrom = e.pagefrom
        }
    },
    methods: {},
}
</script>

<style></style>
